<%@page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>移动学习</title>
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
	<meta content="telephone=no" name="format-detection" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<script src="http://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
	   <script  type="text/javascript">
			var head=JSON.parse('<%=request.getAttribute("head")%>');
			var body=JSON.parse('<%=request.getAttribute("body")%>');
			var foot=JSON.parse('<%=request.getAttribute("foot")%>');
			var pk_psndoc=foot['pk_psndoc'];
			var url = location.origin + location.pathname.substr(0, location.pathname.indexOf('/', 1)) + "/app/reqdata";
			var params = {
                    serviceid: "hrmobilestudy",
                    usercode: foot.ucode,
                    token: foot.token,
                    queryMyCourseProc: {
                    	pk_psndoc: pk_psndoc,
                    	learnState: 0
                    }
                };
				$.ajax({
                    type: "post",
                    url: url,
                    data: JSON.stringify(params),
                    beforeSend: function (XMLHttpRequest) {
                        XMLHttpRequest.setRequestHeader("maurl", body.url);
                    },
                    contentType: 'application/json;charset=utf-8',
                    success: function (result) {
                        console.log(result);
                    }
                }); 
		</script>
</html>